# 作者：小七
# 2024年12月28日
def homework1():
    list1 = [1, 1, 2, 2, 3, 6, 6]
    result = 0
    for i in list1:
        result ^= i
    print(result)


def homework6():
    list1 = [1, 1, 2, 2, 3, 6, 6, 8, 3, 11, 8, 10]
    result = 0
    for i in list1:
        result ^= i
    result1, result2 = 0, 0
    flag = result & -result
    for i in list1:
        if i & flag:
            result2 ^= i
        else:
            result1 ^= i
    print(result1, result2)


if __name__ == "__main__":
    homework1()
    homework6()
